package cn.wsalix.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.CommonEntity;
import cn.anlaser.status.FlagEnum;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "VERIFY_CODE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@EqualsAndHashCode(callSuper = false)
public class VerifyCode extends CommonEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5811597169066365643L;
	private String code;//代码
	private String phone;
	private String name;//用户名
	private String subTitle;//产品
	private String content;// 发送内容
	
	private Long userId;
	private int count;
	//private String smsType;
	
	private FlagEnum status;
}
